<layout name='PublishedRecipe' />
<div class="center">
    	<div class="set"><h1>My favourite Recipes & Articles</h1></div>
    	<div class="set_dl">
        	<div class="me_nav">
            	<ul>
                	<li><a class="lia" href="__APP__/User/favourite/type/1">Recipe</a></li>
                    <li><a class="lia" href="__APP__/User/favourite/type/2">Menu</a></li>
                    <li><a class="lia" href="__APP__/User/favourite/type/3">Sauce</a></li>
                    <li><a class="lia" href="__APP__/User/favourite/type/4">Tips & Garnishment</a></li><div style="clear:both;"></div>
                </ul>
            </div>

            <div class="text_box">
                <ul>
                    <empty name="recipeinfo">
                        <li>
                            <p class="the">None</p>
                        </li>
                        <else/>
                        <volist name="recipeinfo" id="vo">

                                <switch name="vo.sectionid">
                                    <case value="1">
                                        <li>
                                            <p class="the"><a href="__APP__/Recipe/content/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>"><{$vo.recipearticle.name}></a></p>
                                            <p>
                                                <span class="editor">
                                                <span><a class="deleterecipe" href="__APP__/Recipe/delfavourite/sid/<{$Think.get.type}>/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>">Delete</a></span>
                                                </span>
                                                <span class="shij"><{$vo.created|date="Y-m-d H:s:i",###}></span>
                                            </p>
                                        </li>
                                    </case>
                                    <case value="2">
                                    <li>
                                        <p class="the"><a href="__APP__/Special/content/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>"><{$vo.specialarticle.name}></a></p>
                                        <p>
                                                <span class="editor">
                                                <span><a class="deleterecipe" href="__APP__/Special/delfavourite/sid/<{$Think.get.type}>/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>">Delete</a></span>
                                                </span>
                                            <span class="shij"><{$vo.created|date="Y-m-d H:s:i",###}></span>
                                        </p>
                                    </li>
                                    </case>
                                    <case value="3">
                                        <li>
                                            <p class="the"><a href="__APP__/Sauce/content/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>"><{$vo.saucearticle.name}></a></p>
                                            <p>
                                                <span class="editor">
                                                <span><a class="deleterecipe" href="__APP__/Sauce/delfavourite/sid/<{$Think.get.type}>/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>">Delete</a></span>
                                                </span>
                                                <span class="shij"><{$vo.created|date="Y-m-d H:s:i",###}></span>
                                            </p>
                                        </li>
                                    </case>
                                    <case value="4">
                                        <li>
                                            <p class="the"><a href="__APP__/Kitchen/content/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>"><{$vo.kitchenarticle.name}></a></p>
                                            <p>
                                                <span class="editor">
                                                <span><a class="deleterecipe" href="__APP__/Kitchen/delfavourite/sid/<{$Think.get.type}>/cid/<{$vo.categoryid}>/id/<{$vo.articleid}>">Delete</a></span>
                                                </span>
                                                <span class="shij"><{$vo.created|date="Y-m-d H:s:i",###}></span>
                                            </p>
                                        </li>
                                    </case>
                                </switch>

                        </volist>
                    </empty>
                </ul>
            </div>

            <notempty name="recipeinfo">
                <div class="fanye_box2">
                    <div class="fanye_text">
                        <{$fpage}>
                    </div>
                    <div></div>
                </div>
            </notempty>

        </div>
        
        <div class="right_dl">
        	<span class="rit">
                <empty name="userinfo.gravatar">
                        <img class="ritimg" src="__PUBLIC__/Content/User/default.jpg" />
                    <else/>
                        <img class="ritimg" src="__PUBLIC__/Content/User/<{$userinfo.gravatar}>" />
                </empty>
                <p style="text-align: center;width:130px;" title="<{$userinfo.exp}> integral">
                    <if condition="$userinfo['exp'] egt 1500">
                        <img src="../Public/images/jing.jpg" />
                        <elseif condition="$userinfo['exp'] egt 800"/>
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <elseif condition="$userinfo['exp'] egt 300"/>
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <elseif condition="$userinfo['exp'] egt 100"/>
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <elseif condition="$userinfo['exp'] egt 25"/>
                        <img src="../Public/images/chushimao.jpg" />
                        <img src="../Public/images/chushimao.jpg" />
                        <else />
                        <img src="../Public/images/chushimao.jpg" />
                    </if>
                </p>
                <p>Nickname: <span style="color: #666;"><{$userinfo.username}></span></p>
                <p>Integral: <span style="color: #666;"><{$userinfo.exp}></span></p>
                <p>Joined: <span style="color: #666;"><{$userinfo.regdate|date="Y-m-d H:s:i",###}></span></p>
                <p>Last Login: <span style="color: #666;"><{$userinfo.logindate|date="Y-m-d H:s:i",###}></span></p>
            </span>
        </div>
    </div>
